$('#submit').click(function(){

	var data = $('#from').serialize();

	var btn = $(this).button('loading')

	$.post("/event/create",
			data,
			function(result){
	            if(result.status == true){

	              	
	              	$.successAlert(result.msg);

					setTimeout(function (){window.location.href='/event'}, 3000)
	            }else{
	            	$.errorAlert(result.msg);
	            		            	
					btn.button('reset')

					return false;	
	            }
	},"json");

})